package cn.sciento.core.async;

import java.util.Date;

public class TaskDTO {
    private Long taskId;

    private String taskCode;

    private String taskName;

    private String hostName;

    private String serviceName;

    private Long tenantId;

    private Long userId;

    private AsyncTaskState state;

    private String errorInfo;

    private String downloadUrl;

    private Date endDateTime;

    public Long getTaskId() {
        return this.taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public String getTaskCode() {
        return this.taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getTaskName() {
        return this.taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getHostName() {
        return this.hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getServiceName() {
        return this.serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Long getTenantId() {
        return this.tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public AsyncTaskState getState() {
        return this.state;
    }

    public void setState(AsyncTaskState state) {
        this.state = state;
    }

    public String getErrorInfo() {
        return this.errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public String getDownloadUrl() {
        return this.downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public Date getEndDateTime() {
        return this.endDateTime;
    }

    public void setEndDateTime(Date endDateTime) {
        this.endDateTime = endDateTime;
    }

    public String toString() {
        return "TaskDTO{taskId=" + this.taskId + ", taskCode='" + this.taskCode + '\'' + ", taskName='" + this.taskName + '\'' + ", hostName='" + this.hostName + '\'' + ", serviceName='" + this.serviceName + '\'' + ", tenantId=" + this.tenantId + ", userId=" + this.userId + ", state=" + this.state + ", errorInfo='" + this.errorInfo + '\'' + ", downloadUrl='" + this.downloadUrl + '\'' + ", endDateTime=" + this.endDateTime + '}';
    }
}
